using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._DistributedGeodatabase
{
    /// <summary>
    /// <para>Enable Replica Tracking</para>
    /// <para>Enables replica tracking on data, allowing you to work with  offline maps. Replica tracking applies to services that are configured with the sync capability with the option of creating a version for each downloaded map.</para>
    /// <para>启用对数据的复本追踪，允许您使用离线地图。副本追踪适用于配置了同步功能的服务，并可选择为每个下载的地图创建版本。</para>
    /// </summary>    
    [DisplayName("Enable Replica Tracking")]
    public class EnableReplicaTracking : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public EnableReplicaTracking()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The enterprise geodatabase table, feature class, feature dataset, attributed relationship class, or many-to-many relationship class on which to enable replica tracking.</para>
        /// <para>要启用复本追踪的企业级地理数据库表、要素类、要素数据集、属性关系类或多对多关系类。</para>
        /// </param>
        public EnableReplicaTracking(object _in_dataset)
        {
            this._in_dataset = _in_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Enable Replica Tracking";

        public override string CallName => "management.EnableReplicaTracking";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_dataset, _updated_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The enterprise geodatabase table, feature class, feature dataset, attributed relationship class, or many-to-many relationship class on which to enable replica tracking.</para>
        /// <para>要启用复本追踪的企业级地理数据库表、要素类、要素数据集、属性关系类或多对多关系类。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Updated Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _updated_dataset { get; set; }


        public EnableReplicaTracking SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}